Add this function, to make mnemonic_activate work for combo boxes.
authorMatthias Clasen <maclas@gmx.de>
Thu, 5 Feb 2004 22:46:22 +0000 (22:46 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 5 Feb 2004 22:46:22 +0000 (22:46 +0000)
Thu Feb  5 23:48:19 2004  Matthias Clasen  <maclas@gmx.de>

* gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Add this
function, to make mnemonic_activate work for combo boxes.
(#133443, Paolo Borelli)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkcombobox.c

index 37d6ae2d6b66ec899ddfc55bf91211ef68b314dd..d2cc5e172e3db8984546c9223954f1d23e5cb579 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Thu Feb  5 23:48:19 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Add this
+       function, to make mnemonic_activate work for combo boxes.
+       (#133443, Paolo Borelli)
+
 Thu Feb  5 22:05:52 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtkfilesystemunix.c (bookmark_list_read): Initialize result
index 37d6ae2d6b66ec899ddfc55bf91211ef68b314dd..d2cc5e172e3db8984546c9223954f1d23e5cb579 100644 (file)
@@ -1,3 +1,9 @@
+Thu Feb  5 23:48:19 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Add this
+       function, to make mnemonic_activate work for combo boxes.
+       (#133443, Paolo Borelli)
+
 Thu Feb  5 22:05:52 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtkfilesystemunix.c (bookmark_list_read): Initialize result
index 37d6ae2d6b66ec899ddfc55bf91211ef68b314dd..d2cc5e172e3db8984546c9223954f1d23e5cb579 100644 (file)
@@ -1,3 +1,9 @@
+Thu Feb  5 23:48:19 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Add this
+       function, to make mnemonic_activate work for combo boxes.
+       (#133443, Paolo Borelli)
+
 Thu Feb  5 22:05:52 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtkfilesystemunix.c (bookmark_list_read): Initialize result
index 37d6ae2d6b66ec899ddfc55bf91211ef68b314dd..d2cc5e172e3db8984546c9223954f1d23e5cb579 100644 (file)
@@ -1,3 +1,9 @@
+Thu Feb  5 23:48:19 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Add this
+       function, to make mnemonic_activate work for combo boxes.
+       (#133443, Paolo Borelli)
+
 Thu Feb  5 22:05:52 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtkfilesystemunix.c (bookmark_list_read): Initialize result
index 37d6ae2d6b66ec899ddfc55bf91211ef68b314dd..d2cc5e172e3db8984546c9223954f1d23e5cb579 100644 (file)
@@ -1,3 +1,9 @@
+Thu Feb  5 23:48:19 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Add this
+       function, to make mnemonic_activate work for combo boxes.
+       (#133443, Paolo Borelli)
+
 Thu Feb  5 22:05:52 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtkfilesystemunix.c (bookmark_list_read): Initialize result
index eef5ea6f83fbdb002afe93d8879ff5e70c8a4d62..f52a44168970cd3826848cf2234784f29e46705c 100644 (file)
@@ -255,10 +255,8 @@ static void     gtk_combo_box_cell_layout_clear_attributes   (GtkCellLayout
 static void     gtk_combo_box_cell_layout_reorder            (GtkCellLayout         *layout,
                                                               GtkCellRenderer       *cell,
                                                               gint                   position);
-#if 1
 static gboolean gtk_combo_box_mnemonic_activate              (GtkWidget    *widget,
                                                              gboolean      group_cycling);
-#endif
 
 
 GType
@@ -2830,13 +2828,14 @@ gtk_combo_box_remove_text (GtkComboBox *combo_box,
 }
 
 
-#if 1
 static gboolean
 gtk_combo_box_mnemonic_activate (GtkWidget *widget,
                                 gboolean   group_cycling)
 {
-  g_print ("I'm here!\n");
-  gtk_widget_grab_focus (GTK_COMBO_BOX (widget)->priv->tree_view);
+  GtkComboBox *combo_box = GTK_COMBO_BOX (widget);
+
+  gtk_widget_grab_focus (combo_box->priv->tree_view);
+
   return TRUE;
 }
-#endif
+